package cn.zmwh.bbs.modules.bbs.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文章信息
 * </p>
 *
 * @author dmzmwh
 * @since 2025-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("forum_article")
@ApiModel(value="ForumArticle对象", description="文章信息")
public class ForumArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章ID")
    private String articleNo;

    @ApiModelProperty(value = "板块ID")
    private Long boardId;

    @ApiModelProperty(value = "板块名称")
    private String boardName;

    @ApiModelProperty(value = "父级板块ID")
    private Long pBoardId;

    @ApiModelProperty(value = "父板块名称")
    private String pBoardName;

    @ApiModelProperty(value = "用户ID")
    private Long uid;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "最后登录ip地址")
    private String userIp;

    @ApiModelProperty(value = "最后登录ip地址")
    private String userIpAddress;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "markdown内容")
    private String markdownContent;

    @ApiModelProperty(value = "0:富文本编辑器 1:markdown编辑器")
    private Integer editorType;

    @ApiModelProperty(value = "摘要")
    private String summary;

    @ApiModelProperty(value = "发布时间")
    private Date postTime;

    @ApiModelProperty(value = "最后更新时间")
    private Date lastUpdateTime;

    @ApiModelProperty(value = "阅读数量")
    private Integer readCount;

    @ApiModelProperty(value = "点赞数")
    private Integer goodCount;

    @ApiModelProperty(value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "0未置顶  1:已置顶")
    private Integer topType;

    @ApiModelProperty(value = "0:没有附件  1:有附件")
    private Integer attachmentType;

    @ApiModelProperty(value = "-1已删除 0:待审核  1:已审核 ")
    private Integer status;

    @ApiModelProperty(value = "语言类型")
    private String lang;

    @ApiModelProperty(value = "1译文，0原创")
    private Integer translate;


}
